<div class='fui-page fui-page-current member-log-page' ng-if="pagedata.op=='main'">
    <div class='fui-content'>
        <div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
            <i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
        </div>
		<div class='jy-content'>
        <div class='fui-list-group container' ng-show="pagedata.list.length>0" >
			<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
				<div class="fui-list-inner">
					<div class='title'>
						<span class="label label-success">{{item.statustitle}}</span>
						<span class="red" style="margin-left:0.3rem">桶押金：{{item.fee}}</span>
						<span class="gray" style="font-size:0.6rem;">元</span>
					</div>
					<div class='gray'>{{item.createtime}}</div>
				</div>
				<div class='fui-list-angle'>
					<div ng-show="item.status==1" class="btn btn-sm btn-default-o order-finish" style="line-height:1.8;" href="javascript:;" ng-click="access_json('/yajin_log/apply/logid='+item.id)">申请退押金</div>
					<div ng-show="item.status==3 || item.status==4" class="btn btn-sm btn-warning-o order-finish" style="line-height:1.8;" href="javascript:;" ng-click="access_json('/yajin_log/applyinfo/logid='+item.id)">退押金详情</div>
				</div>
			</div>
		</div>
		</div>
    </div>
	<div ng-include="sys_html('common/_menu','','','jy_weishop')"></div>
	<div ng-include="sys_html('common/_footer','','','jy_weishop')"></div>
	<script>
	scope.tool.get_list('jy_weishopwater/yajin_log/list/',true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_weishopwater/yajin_log/list/');
	}
	</script>
</div>
<style>
    .fui-footer .btn{
        border-radius: 1rem;
        margin-top: .6rem;
        min-width: 4.1rem;
    }
    .fui-footer{
        padding-right: .6rem;
    }
    .fui-footer .btn.btn-default-o {
        border-color: #666;
        color: #666;
    }
    .fui-title.r-group{
        background: #f3f3f3;
        margin: 0;
        padding: .5rem .6rem;
    }
    .fui-cell-group .fui-cell.noborder:before{
        border:0;
    }
	.jylabels {
		padding: 0 0.5rem;
		margin-left:0;
		margin-top:0;
		border-radius:0.2rem;
	}
</style>
<div class="fui-page fui-page-current" ng-if="pagedata.op=='apply'">
<div class="fui-header">  
    <div class="title">申请退押金</div>
    <div class="fui-header-right">&nbsp;</div>
</div>
<div class='fui-content'>
	<div class='jy-content' style="padding:0.5rem">
	<div class="fui-cell-group" style="margin-top:0">
			<div class="fui-cell">
				<div class="fui-cell-label">状态</div>
				<div class="fui-cell-text r">
					{{pagedata.log.statustitle}}
				</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-label">押金金额</div>
				<div class="fui-cell-text r">
					￥{{pagedata.log.fee}}
				</div>
			</div>
	</div>
	</div>
</div>
<div class='fui-footer text-right'>
    <a class='btn btn-sm btn-danger-o btn-submit' ng-click="post(pagedata.log,'checkapply')">提交申请</a>
    <a class="btn btn-sm btn-default-o back" ng-click="goback()">取消</a>
</div>
</div>
<div class="fui-page fui-page-current" ng-if="pagedata.op=='applyinfo'">
<div class="fui-header">  
    <div class="title">退押金详情</div>
    <div class="fui-header-right">&nbsp;</div>
</div>
<div class='fui-content'>
	<div class='jy-content' style="padding:0.5rem">
	<div class="fui-cell-group" style="margin-top:0">
			<div class="fui-cell">
				<div class="fui-cell-label">状态</div>
				<div class="fui-cell-text r">
					{{pagedata.log.statustitle}}
				</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-label">退押金金额</div>
				<div class="fui-cell-text r">
					￥{{pagedata.log.fee}}
				</div>
			</div>
			<div ng-if="pagedata.log.status==4" class="fui-cell">
				<div class="fui-cell-label">退押金失败原因</div>
				<div class="fui-cell-text r">
					{{pagedata.log.remark}}
				</div>
			</div>
	</div>
	</div>
</div>
<div class='fui-footer text-right'>
    <a class="btn btn-sm btn-default-o back" ng-click="goback()">返回</a>
</div>
</div>